#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<vector>
using namespace std;
class Solution {
public:
    vector<int> twoSum(vector<int>& nums, int target) {
        for (int i = 0; i < nums.size(); i++)
        {
            for (int j = i + 1; j < nums.size(); j++)
            {
                if (nums[i] + nums[j] == target)
                {
                    return {i,j};
                }
            }
        }
        return { -1,-1 };
    }
};
int main()
{
    Solution as;
    vector<int> we = {413,644,67,8,56,0,78,0,7648,67,5};
    vector<int> q=as.twoSum(we,56);
    for (auto e : q)
    {
        cout << e<<" ";
    }
	return 0;
}